Skip to main content
DELETE
/
files
/
{id}
Delete file
curl --request DELETE \
  --url https://{subdomain}.storage.{region}.nhost.run/v1/files/{id} \
  --header 'Authorization: Bearer <token>'
{
  "error": {
    "message": "File not found",
    "data": {}
  }
}

Authorizations

Authorization
string
header
required

API key to authorize requests.

Path Parameters

id
string
required

Unique identifier of the file to delete

Response

File successfully deleted